"""
@name : test02
@author : maxueyan
@projectname: sanchuang
"""

import re
#匹配里面的每一个单词，引号部分作为一个单词输出
msg = "san chuang tong le, welcom ,'hello world', learn python"
ret = re.findall(r"(?<=\').+(?=\')|\w+",msg)
print(ret)